function PlayerPanel(cContext,playerObj){
	
	this.ctx = cContext;
	this.player = playerObj;
	
	this.draw = function(){		
		this.ctx.save();
		//this.ctx.lineWidth = 1;
		this.ctx.clearRect(0,0,200,300)		
		this.ctx.strokeStyle="gray";	
		
		this.ctx.fillStyle="blue";
		this.ctx.fillRect(10,90,80,this.player.currentFuel);		
		
		this.ctx.fillStyle="white";
		this.ctx.beginPath();
		this.ctx.moveTo(80, 90);
		this.ctx.quadraticCurveTo(100, 240, 50, 290);
		this.ctx.lineTo(90,290);
		this.ctx.lineTo(90,90);
		this.ctx.lineTo(80,90);
		this.ctx.fill();
		this.ctx.closePath();				
		
		this.ctx.beginPath();
		this.ctx.moveTo(20, 90);		
		this.ctx.quadraticCurveTo(0, 240, 50, 290);
		this.ctx.lineTo(10,290);		
		this.ctx.lineTo(10,90);						
		this.ctx.lineTo(20,90);						
		this.ctx.fill();
		this.ctx.closePath();
		
		this.ctx.fillStyle = "white";
		this.ctx.beginPath();
		this.ctx.arc(50,60,50,0,2*Math.PI,false);
		this.ctx.lineTo(50,60);
		this.ctx.fill();		
		this.ctx.closePath();
		
		this.ctx.fillStyle = "red";
		this.ctx.beginPath();
		this.ctx.arc(50,60,50,3*Math.PI/2,(2*Math.PI*this.player.currentShieldPower)/(this.player.maxShieldPower)+3*Math.PI/2,false);
		this.ctx.lineTo(50,60);
		this.ctx.fill();		
		this.ctx.closePath();
		
		this.ctx.beginPath();
		this.ctx.arc(50,60,50,0,2*Math.PI,true);			
		this.ctx.stroke();
		this.ctx.closePath();
		
		this.ctx.restore();
	}
}